<body>
<div class="ui-form w600">
<form id="form" action="{url('label/add')}" method="post">
<input type="hidden" name="fid" value="{$fid}"/>
<input type="hidden" name="type" value="{$type}"/>
<input type="hidden" name="es_class" value="pid"/>
<table>
    <tr><th>标签名称:</th><td><input datatype="s" class="input w300" type="text" name="title"  value="{$info['title']}"/></td></tr>
    <tr>
        <th>ID绑定:</th>
        <td>
            <select class="select" name="es_locks">
                <option value="1" {if $info[es_locks] == 1}selected{/if}>锁定栏目ID</option>
                <option value="0" {if $info[es_locks] == 0}selected{/if}>动态栏目ID</option>
            </select>
            <span class="gray">(标签传入的唯一ID查询条件)</span>
        </td>
    </tr>
    <tr><th>排序:</th><td>
            <select class="select" onChange="$('#es_order').val($(this).val())">
                <option value="" selected>请选择排序类型</option>
                <option value="id desc" selected>ID倒序</option>
                <option value="id asc">ID升序</option>
                <option value="neworder desc,id desc">自定义倒序</option>
                <option value="neworder asc,id desc">自定义升序</option>
            </select>
            <input  id="es_order" datatype="*" class="input w150" type="text" name="es_order"  value="{$info['es_order']}"  />
            <span class="vform"></span>
        </td>
    </tr>
     <tr>
        <th>附加SQL条件:</th>
        <td>
            <input id="where" class="input w300" type="text" name="es_where" value="{$info['es_where']}" /><span class="gray">标准SQL WHERE条件语句</span>
        </td>
    </tr>
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','Dialog','Form',function(){ 
    $('#form').cpFormPage();
}) 
</script>
</body>